package zyy.model;

import java.util.Date;

import zyy.util.Bus;

public class BeanAdminUserinfo {
  public static final String[] tblAdminTitles = { "用户ID", "昵称", "登录账号", "登录密码", "注册时间", "VIP状态", "VIP有效期", "订单计数" };
  private int UserID;
  private String uName;
  private String loginName;
  private String uPasswd;
  private Date uRegDate;
  private int OrderID;
  private String oStatus;
  private int orderCnt;
  private int uVIP;
  private Date uVIPtill;

  public String getCell(int col) {
    switch (col) {
      case 0:
        return UserID + "";
      case 1:
        return uName;
      case 2:
        return loginName;
      case 3:
        return uPasswd;
      case 4:
        return uRegDate == null ? "" : Bus.sdf.format(uRegDate);
      case 5:
        return uVIP == 0 ? "否" : "是";
      case 6:
        return uVIPtill == null ? "" : Bus.sdf.format(uVIPtill);
      case 7:
        return orderCnt + "";
      default:
        return "";
    }
  }

  public int getUserID() {
    return UserID;
  }

  public void setUserID(int userID) {
    UserID = userID;
  }

  public String getuName() {
    return uName;
  }

  public void setuName(String uName) {
    this.uName = uName;
  }

  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public String getuPasswd() {
    return uPasswd;
  }

  public void setuPasswd(String uPasswd) {
    this.uPasswd = uPasswd;
  }

  public int getOrderID() {
    return OrderID;
  }

  public void setOrderID(int orderID) {
    OrderID = orderID;
  }

  public String getoStatus() {
    return oStatus;
  }

  public void setoStatus(String oStatus) {
    this.oStatus = oStatus;
  }

  public int getOrderCnt() {
    return orderCnt;
  }

  public void setOrderCnt(int orderCnt) {
    this.orderCnt = orderCnt;
  }

  public int getuVIP() {
    return uVIP;
  }

  public void setuVIP(int uVIP) {
    this.uVIP = uVIP;
  }

  public Date getuVIPtill() {
    return uVIPtill;
  }

  public void setuVIPtill(Date uVIPtill) {
    this.uVIPtill = uVIPtill;
  }

  public Date getuRegDate() {
    return uRegDate;
  }

  public void setuRegDate(Date uRegDate) {
    this.uRegDate = uRegDate;
  }

  @Override
  public String toString() {
    return "BeanAdminUserinfo [UserID=" + UserID + ", uName=" + uName + ", uVIP=" + uVIP + "]";
  }
}